Repository navigation
[NO QA][Wise] Add the next step for a payment our payments partner is reviewing - #107084
Conversation
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx bun ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@stitesExpensify Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
There was a problem hiding this comment.
@KioCoan I think this was accidentally commited
There was a problem hiding this comment.
Oh. Yeah. Let me remove it.
|
Also, investigating with Codex, it seems to think that the report comment we add after a payment is released mentions the potential for an FX rate to change the amount. Is that right? (I don't think I can easily simulate this case on an adhoc build to test myself). If so, I think we might be mixing up cases here. My understanding is this PR is covering the case where Wise holds a payment (covered in the design doc here.) If so, there is no potential FX rate change for that case. We've already created the payment with Wise, and the rate is locked. When the payment is released, we would only need to explain that it was released and provide an updated estimate for when the funds would be delivered. See below for the screenshot from the design doc. This differs from a different case in the design doc where Expensify puts a payment on hold for our internal review. That case happens before the payment is created with Wise, meaning that there is the potential for the final FX rate to change depending on how long the internal review takes. That case has not yet been approved by Wise and is still subject to further internal discussion. I don't think we should handle that in this PR yet. Please let me know if there are any questions on that. Thank you!
|
Yeah, Codex is right. The release comment reads "The review is complete and your payment is on its way. The final FX rate may change the amount." That copy isn't from this PR though, this one only adds the next step. It came in with App PR 106161, from the copy table in this 692516 comment. I agree with you. Wise holds the payment after we've created the transfer, so the rate is already locked and there's nothing to warn about. Should I adjust it in this PR? I think we also need to update the Auth portion to fully match the mock. I could do it in two follow up PRs:
|
|
Thank you for the explanation. Yep, let's change that. Thanks! |
|
@KioCoan are you going to push that fix? |
Yeah, working on it. I'll ping you in a bit. |
|
@grgia pushed. The release message now reads "Payment released, funds are expected to arrive by {date}.", or "Payment released." without a date, and the FX line is gone from every locale. Auth doesn't send the date on the release yet, so I'll add that in a follow-up. Do we need to add any specific QA labels or instructions for Wise PRs? |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
@KioCoan should we hold this on that auth change instead? |
I made it optional, so we can do this one first. The Auth draft is up but it's stacked on https://github.com/Expensify/Auth/pull/26779 |
|
@KioCoan i merged that one, are we good to merge this? This pr LGTM |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 grgia has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.5.53-0 🚀
|
|
No help site update needed — this PR only clarifies existing payment hold and release messages, without adding a user workflow or making any existing article sentence incorrect. |
|
@KioCoan Can you please share credentials to connect to Wise bank or random details works for this? |
|
@grgia could you help us with QA? I don't know the process used for the other PRs. |
|
@KioCoan no QA needed for this App PR |
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.5.53-3 🚀
Bundle Size Analysis (Sentry): |




Explanation of Change
waitingForPaymentReview, which Auth sends while our payments partner (Wise) reviews a paid report's payment: "Payment on hold, look for another update." There's no date, because Wise's delivery estimate doesn't hold during the review.UPCOMING_STEP_ACTION_BY_MESSAGE_KEYthe key maps toPAY, the same aswaitingForPayment, notundefined. Nobody on the report can act on it, but the same is true ofwaitingForPayment, and the new key replaces that one on the same paid report. So the report history stays the same when a hold starts or ends. Auth sends a paid report no upcoming steps, so the mapping only matters for an older snapshot:PAYtrims it to the pay step, whileundefinedwould still list submit and approve as coming up.scripts/generateTranslations.ts, keeping only the new key's line. A full run rewrote the rest of thenextStepblock, so I kept the reviewed strings.Fixed Issues
https://github.com/Expensify/Expensify/issues/703529
Tests
npx jest tests/unit/NextStepUtilsTest.ts. Confirm "says a payment is on hold without a delivery date" passes. It fails on main, where the message is empty.["deposit_amount_less_invoice"]to the reimbursement'sdetails.hold.activeCases), then reopen the report.[]), reopen the report, and confirm it reads "Waiting for payment to complete by {date}" again.Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Before, on main Auth with the payment on hold:


On hold, with this PR and the Auth PR: <
After the cases clear: